package com.ftg.product.exam.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.diboot.core.vo.JsonResult;
import com.ftg.product.exam.entity.SysEmployee;
import com.ftg.product.exam.mapper.SysEmployeeMapper;
import com.ftg.product.exam.service.SysEmployeeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
* 1.3 员工信息(名称、性别、所在部门、职务、邮箱、手机号、岗位)相关Service实现
* @author kangjx
* @version 1.0
* @date 2021-01-15
 * Copyright © ftg
*/
@Service
@Slf4j
public class SysEmployeeServiceImpl extends BaseCustomServiceImpl<SysEmployeeMapper, SysEmployee> implements SysEmployeeService {

    @Autowired
    SysEmployeeMapper sysEmployeeMapper;

    @Override
    public List<Map<String, Object>> login(String empphone, String emppassword) {
        return sysEmployeeMapper.login(empphone,emppassword);
    }

    @Override
    public int deletes(List<Long> ids) {
        return sysEmployeeMapper.deleteBatchIds(ids);
    }

    @Override
    public List<Map<String,Object>> query(String empname, Long emporgcode,Long empjobcode,Long emppostcode) {
        return sysEmployeeMapper.query(empname, emporgcode,empjobcode, emppostcode);
    }

}
